<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
//隐私设置
class CreatePrivacSetsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('privac_sets', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamps();
            $table->integer('uid');//用户id
            $table->tinyInteger('is_assess_psychology')->default(1);//我的心理学评估是否对外显示  1表示显示
            $table->tinyInteger('is_assess_yijing')->default(1);    //我的易经评估是否对外显示  1表示显示
            $table->tinyInteger('is_sex')->default(1);              //性别是否对外显示  1表示显示
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('privac_sets');
    }
}
